<?php
	require_once '../connect.php';
	$title = $_POST['title'];
	$price = $_POST['price'];
	$origin_title = $_GET['origin_title'];
	echo $origin_title;
	$query = "UPDATE library SET title='$title',price=$price WHERE title='$origin_title'";
	if(mysqli_query($con, $query)){
		echo "<script>alert('modify success!');</script>";
		echo "<script>window.location.href='manage.php';</script>";
	}
?>